﻿<Window x:Class="ApplicationsCenter.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="SharePointTools" Height="506" Width="735" Loaded="Window_Loaded" ResizeMode="NoResize" Icon="/ApplicationsCenter;component/Images/iStock_000010874966XSmall.jpg">
    <Window.Background>
        <ImageBrush ImageSource="/ApplicationsCenter;component/Images/abstract%20textures%20gradient%202560x1600%20wallpaper_www.wallpaperto.com_56.jpg" />
    </Window.Background>
    <Window.Resources>
        <ControlTemplate x:Key="GlassButton" TargetType="{x:Type Button}">
            <ControlTemplate.Resources>
                <Storyboard x:Key="Timeline1">
                    <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="glow" Storyboard.TargetProperty="(UIElement.Opacity)">
                        <SplineDoubleKeyFrame KeyTime="00:00:00.3000000" Value="1"/>
                    </DoubleAnimationUsingKeyFrames>
                </Storyboard>
                <Storyboard x:Key="Timeline2">
                    <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="glow" Storyboard.TargetProperty="(UIElement.Opacity)">
                        <SplineDoubleKeyFrame KeyTime="00:00:00.3000000" Value="0"/>
                    </DoubleAnimationUsingKeyFrames>
                </Storyboard>
            </ControlTemplate.Resources>
            <Border BorderBrush="#FFFFFFFF" BorderThickness="1,1,1,1" CornerRadius="4,4,4,4">
                <Border x:Name="border" Background="#7F000000" BorderBrush="#FF000000" BorderThickness="1,1,1,1" CornerRadius="4,4,4,4">
                    <Grid>
                        <Grid.RowDefinitions>
                            <RowDefinition Height="0.507*"/>
                            <RowDefinition Height="0.493*"/>
                        </Grid.RowDefinitions>
                        <Border Opacity="0" HorizontalAlignment="Stretch" x:Name="glow" Width="Auto" Grid.RowSpan="2" CornerRadius="4,4,4,4">
                            <Border.Background>
                                <RadialGradientBrush>
                                    <RadialGradientBrush.RelativeTransform>
                                        <TransformGroup>
                                            <ScaleTransform ScaleX="1.702" ScaleY="2.243"/>
                                            <SkewTransform AngleX="0" AngleY="0"/>
                                            <RotateTransform Angle="0"/>
                                            <TranslateTransform X="-0.368" Y="-0.152"/>
                                        </TransformGroup>
                                    </RadialGradientBrush.RelativeTransform>
                                    <GradientStop Color="#B28DBDFF" Offset="0"/>
                                    <GradientStop Color="#008DBDFF" Offset="1"/>
                                </RadialGradientBrush>
                            </Border.Background>
                        </Border>
                        <ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center" Width="Auto" Grid.RowSpan="2"/>
                        <Border HorizontalAlignment="Stretch" Margin="0,0,0,0" x:Name="shine" Width="Auto" CornerRadius="4,4,0,0">
                            <Border.Background>
                                <LinearGradientBrush EndPoint="0.494,0.889" StartPoint="0.494,0.028">
                                    <GradientStop Color="#99FFFFFF" Offset="0"/>
                                    <GradientStop Color="#33FFFFFF" Offset="1"/>
                                </LinearGradientBrush>
                            </Border.Background>
                        </Border>
                    </Grid>
                </Border>
            </Border>
            <ControlTemplate.Triggers>
                <Trigger Property="IsPressed" Value="True">
                    <Setter Property="Opacity" TargetName="shine" Value="0.4"/>
                    <Setter Property="Background" TargetName="border" Value="#CC000000"/>
                    <Setter Property="Visibility" TargetName="glow" Value="Hidden"/>
                </Trigger>
                <Trigger Property="IsMouseOver" Value="True">
                    <Trigger.EnterActions>
                        <BeginStoryboard Storyboard="{StaticResource Timeline1}"/>
                    </Trigger.EnterActions>
                    <Trigger.ExitActions>
                        <BeginStoryboard x:Name="Timeline2_BeginStoryboard" Storyboard="{StaticResource Timeline2}"/>
                    </Trigger.ExitActions>
                </Trigger>
            </ControlTemplate.Triggers>
        </ControlTemplate>
    </Window.Resources>
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="701*" />
            <ColumnDefinition Width="12*" />
        </Grid.ColumnDefinitions>
        <Grid Height="443" HorizontalAlignment="Left" Margin="12,12,0,0" Name="grid1" VerticalAlignment="Top" Width="157" Background="#11000000">
            <Button Canvas.Left="0" Canvas.Top="0" Content="Solutions Deployment" Height="55" Name="deploymentSectionButton" Template="{DynamicResource GlassButton}" Foreground="White" Click="deploymentSectionButton_Click" Margin="0,41,0,347" MouseEnter="deploymentSectionButton_MouseEnter" MouseLeave="deploymentSectionButton_MouseLeave" />
            <Button Canvas.Left="0" Canvas.Top="0" Content="Importing Solutions" Height="55" Name="importingSectionButton" Template="{DynamicResource GlassButton}" Foreground="White" Click="importingSectionButton_Click" Margin="0,102,0,286" />
            <Button Canvas.Left="0" Canvas.Top="0" Content="Close" Foreground="White" Height="55" Margin="0,387,0,1" Name="closeButton" Template="{DynamicResource GlassButton}" Click="closeButton_Click" />
            <Button Canvas.Left="0" Canvas.Top="0" Content="About" Foreground="White" Height="55" Margin="0,326,0,62" Name="aboutButton" Template="{DynamicResource GlassButton}" Click="aboutButton_Click" />
            <!--<Border BorderThickness="1,1,1,1" BorderBrush="{x:Static SystemColors.ControlLightBrush}" CornerRadius="30,30,30,30" >
                <Button Content="?" Height="20" HorizontalAlignment="Left" Margin="139,73,0,0" Name="aboutButton" VerticalAlignment="Top" Width="13" Template="{DynamicResource GlassButton}" Foreground="White"/>
            </Border>-->
        </Grid>
        <Grid Height="443" HorizontalAlignment="Left" Margin="175,12,0,0" Name="grid2" VerticalAlignment="Top" Width="526" Background="#11000000" Grid.ColumnSpan="2">
            <Grid Height="42" HorizontalAlignment="Left" Name="grid3" VerticalAlignment="Top" Width="526">
                <Grid>
                    <TextBlock Foreground="Black" HorizontalAlignment="Center" Margin="0,5,30,5" Text="Sharepoint Tools" Name="titleShadowTextBlock" FontFamily="Palatino Linotype" FontSize="22">
         <TextBlock.Effect>
            <BlurEffect Radius="20" KernelType="Gaussian">                                                                    
            </BlurEffect>                                        
         </TextBlock.Effect>
                    </TextBlock>
                    <TextBlock HorizontalAlignment="Center" Foreground="White" Margin="0,5,30,5" Text="Sharepoint Tools" Name="titleTextBlock" FontFamily="Palatino Linotype" FontSize="22">
                    </TextBlock>
                </Grid>
            </Grid>
        </Grid>
        <Grid Height="404" HorizontalAlignment="Left" Margin="175,51,0,0" Name="tabControl1" VerticalAlignment="Top" Width="526" Grid.ColumnSpan="2">
            <Border x:Name="deploymentOuterBorder" BorderThickness="3,3,0,0" BorderBrush="{x:Static SystemColors.ControlLightBrush}" CornerRadius="10,10,10,10" Opacity="0">
                <Border x:Name="deploymentInnerBorder" BorderThickness="0,0,3,3" BorderBrush="{x:Static SystemColors.ControlDarkBrush}" CornerRadius="10,10,10,10">
                    <Border BorderThickness="1,1,1,1" CornerRadius="10,10,10,10" Name="DeploymentBorder" BorderBrush="Black">
                        <Border.Background>
                            <ImageBrush ImageSource="/ApplicationsCenter;component/Images/backgroundGradient.png" />
                        </Border.Background>
                        <Grid Name="deploymentToolGrid" Visibility="Hidden" Margin="-1,0,1,0">
                            <Grid Margin="1,0,-1,0">
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="199*" />
                                    <ColumnDefinition Width="23*" />
                                    <ColumnDefinition Width="304*" />
                                </Grid.ColumnDefinitions>
                                <Grid Grid.ColumnSpan="3">
                                    <TextBox Height="219" HorizontalAlignment="Center" Margin="6,116,6,0" Name="resultTextBox" VerticalAlignment="Top" Width="504" HorizontalScrollBarVisibility="Disabled" VerticalScrollBarVisibility="Auto" TextWrapping="Wrap" OpacityMask="White" Opacity=".7" IsEnabled="False"/>
                                    <TextBlock Height="23" HorizontalAlignment="Left" Margin="1,12,0,0" Name="textBlock1" Text="Host Url : " VerticalAlignment="Top" Foreground="White"/>
                                    <ComboBox Height="23" HorizontalAlignment="Left" Margin="83,9,0,0" Name="urlsComboBox" VerticalAlignment="Top" Width="240" SelectionChanged="urlsComboBox_SelectionChanged" />
                                    <TextBlock Foreground="White" Height="23" HorizontalAlignment="Left" Margin="1,41,0,0" Name="textBlock2" Text="File Path : " VerticalAlignment="Top" />
                                    <TextBox Height="23" HorizontalAlignment="Left" Margin="83,38,0,0" Name="fileBrowseTextBox" VerticalAlignment="Top" Width="383" />
                                    <Button Content="" Height="23" HorizontalAlignment="Left" Margin="472,38,0,0" Name="fileBrowserButton" VerticalAlignment="Top" Width="29" Click="fileBrowserButton_Click">
                                        <Button.Background>
                                            <ImageBrush ImageSource="/ApplicationsCenter;component/Images/folder.ico" />
                                        </Button.Background>
                                    </Button>
                                    <CheckBox Content="Deploy as a feature" Height="16" HorizontalAlignment="Left" Margin="83,67,0,0" Name="featureCheckBox" VerticalAlignment="Top" Foreground="White" Checked="featureCheckBox_Checked" Unchecked="featureCheckBox_Unchecked" />
                                    <TextBlock Foreground="White" Height="23" HorizontalAlignment="Left" Margin="1,89,0,0" Name="featureTextBlock" Text="Feature Path : " VerticalAlignment="Top"/>
                                    <TextBox Height="23" HorizontalAlignment="Left" Margin="83,86,0,0" Name="featureBrowseTextBox" VerticalAlignment="Top" Width="383" />
                                    <Button Content="" Height="23" HorizontalAlignment="Left" Margin="472,86,0,0" Name="featureBrowserButton" VerticalAlignment="Top" Width="29" Click="featureBrowserButton_Click" >
                                    </Button>
                                    <Button Content="Deploy" Height="57" HorizontalAlignment="Left" Margin="5,339,0,0" Name="deployButton" VerticalAlignment="Top" Width="510" Click="deployButton_Click" Template="{DynamicResource GlassButton}" Foreground="White"/>
                                </Grid>
                            </Grid>
                        </Grid>
                    </Border>
                </Border>
            </Border>
            <Border x:Name="importingOuterBorder" BorderThickness="3,3,0,0" BorderBrush="{x:Static SystemColors.ControlLightBrush}" Opacity="0" CornerRadius="10,10,10,10">
                <Border x:Name="importingInnerBorder" BorderThickness="0,0,3,3" BorderBrush="{x:Static SystemColors.ControlDarkBrush}" CornerRadius="10,10,10,10">
                    <Border BorderThickness="1,1,1,1" CornerRadius="10,10,10,10" Name="ImportingBorder">
                        <Border.Background>
                            <ImageBrush ImageSource="/ApplicationsCenter;component/Images/textures%20gradient%201300x1000%20wallpaper_wallpaperswa.com_41.jpg" />
                        </Border.Background>
                        <Grid Name="importingToolGrid" Visibility="Hidden" Margin="-1,0,1,0">
                            <Grid Margin="1,0,-1,0">
                                <Grid.RowDefinitions>
                                    <RowDefinition Height="39*" />
                                    <RowDefinition Height="60" />
                                    <RowDefinition Height="297" />
                                </Grid.RowDefinitions>
                                <ListBox Height="321" HorizontalAlignment="Stretch" Name="solutionsListBox" VerticalAlignment="Top" Width="500" HorizontalContentAlignment="Left" Margin="8,0" Grid.RowSpan="3">
                                    <ListBox.Background>
                                        <LinearGradientBrush EndPoint="0.498,0.986" StartPoint="0.486,0" Opacity="0.5">
                                            <GradientStop Color="White" Offset="0"/>
                                        </LinearGradientBrush>
                                    </ListBox.Background>
                                    <ListBox.Resources>
                                        <Style TargetType="{x:Type ListBoxItem}">
                                            <Setter Property="Margin" Value="1" />
                                            <Setter Property="Opacity" Value="1" />
                                        </Style>
                                    </ListBox.Resources>
                                </ListBox>
                                <Button Content="Select All" Height="23" HorizontalAlignment="Left" Margin="356,226,0,0" Name="selectAllButton" VerticalAlignment="Top" Width="75" Click="selectAllButton_Click" Foreground="#FFFFFFFF" Template="{DynamicResource GlassButton}" Grid.Row="2" />
                                <Button Content="Deselect All" Height="23" HorizontalAlignment="Right" Margin="0,226,6,0" Name="deSelectAllButton" VerticalAlignment="Top" Width="75" Click="deSelectAllButton_Click" Foreground="#FFFFFFFF" Template="{DynamicResource GlassButton}" Grid.Row="2" />
                                <Button Content="Download" Height="42" HorizontalAlignment="Left" Margin="8,254,0,0" Name="exportButton" VerticalAlignment="Top" Width="503" Click="exportButton_Click" Foreground="#FFFFFFFF" Template="{DynamicResource GlassButton}" FontStyle="Normal" FontWeight="Bold" Grid.Row="2" />
                            </Grid>
                        </Grid>
                    </Border>
                </Border>
            </Border>
        </Grid>
        <Grid Height="400" HorizontalAlignment="Left" Margin="175,54,0,0" Name="grid4" VerticalAlignment="Top" Width="526" Grid.ColumnSpan="2">
            <TextBox Width="525" Height="399" HorizontalAlignment="Left" Margin="6,6,0,0" Name="aboutTextBlock" Text="" VerticalAlignment="Top" TextWrapping="Wrap" Opacity=".7" IsReadOnly="True"/>
        </Grid>
    </Grid>
</Window>
